<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>后台管理系统</title>
	    <meta name="author" content="BaiYY"/>
	    <meta charset="utf-8">
	    <meta http-equiv="X-UA-Compatible" content="IE=edge">
	    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	    <meta name="renderer" content="webkit">
	    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/css/bootstrap.min.css"/>
	    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/css/Font/css/font-awesome.min.css"/>
	    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/css/index.css"/>
	    <script type="text/javascript" src="__PUBLIC__/admin/js/jquery.js"></script>
	    <script type="text/javascript" src="__PUBLIC__/admin/js/bootstrap.min.js"></script>
	    <script type="text/javascript" src="__PUBLIC__/admin/js/index.js"></script>
	</head>
	<body>
		<div class="right-sidebar" style="max-width: 1200px;">
			<ul class="nav nav-tabs" style="margin-bottom: 16px" role="tablist">
				<li role="presentation" class="active"><a href="buy.html">购买房卡</a></li>
				<li role="presentation"><a href="buyList">购买记录</a></li>
			</ul>
			<div class="row">
				<p>&emsp;可用房卡数量：{$card}</p>
				<foreach name='goods' item='v'>
					<if condition="($v.goods_level eq $role) OR ($v.goods_level eq 10)">
						<div class="panel panel-default col-md-3 text-center">
							<div class="panel-body">
								<form action="{:U('Admin/Main/buyOrder')}?goods_id={$v.goods_id}" method="post">
									<div>
										<p><span class="label label-info">{$v.goods_name}</span></p>
										<p><span>{:L('GAME_RESOURCE')}数量：</span>{$v.number}</p>
										<p><span>销售价格：</span>{$v.price} 元</p>
									</div>
									<div>
										<input type="submit" class="btn btn-primary" value="购买">
									</div>
								</form>
							</div>
						</div>
					</if>
				</foreach>
			</div>

		</div>
	</body>
</html>
